package cn.xcyy.itcc.fegin;

import cn.xcyy.itcc.feginfallback.CourseUserLearnFeignClientFallbackFactory;
import cn.xcyy.itcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course", fallbackFactory = CourseUserLearnFeignClientFallbackFactory.class)
public interface CourseUserLearnFeignClient {

    @RequestMapping(value = "/courseUserLearn/{courseId}/{userId}",method = RequestMethod.GET)
    JSONResult checkUrl(@PathVariable("courseId") Long courseId, @PathVariable("userId") Long userId);
}
